package com.consumer.controller;

import com.consumer.feign.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

@RestController
public class UploadController {

    @Autowired
    private TestService testService;

    @PostMapping("/upload")
    public String upload(@RequestBody MultipartFile file){
        return testService.upload(file);
    }
}
